home *** CD-ROM | disk | FTP | other *** search
- /* CPROG7.CPP - One to try with the debugger
-
- Shrink this window so it only occupies half the screen
- - drag its lower right-hand corner with the mouse, or press Ctrl+F5
- then use shift + up cursor / shift + down cursor, then Esc to
- finish re-sizing.
- Go to the Window menu and select Watch.
- Go to Debug, Watches, Add watch
- In the watch expression box enter i and press Return
- Ignore any messages about i being an undefined symbol
- Make sure this window (the source code) is the active one.
- Keep pressing F8 to have the IDE compile the program then step through
- the source code a line at a time. You can see the value of i change
- and see which instruction is currently executing */
-
- #include <stdio.h>
-
- main()
- {
- int i;
- i=0;
- while( i < 6 )
- i++;
- }
-